From: Stefano Stabellini Date: Tue, 31 Jul 2018 15:19:01 +0000 (-0700) Subject: arm: make it possible to disable the SMMU driver X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3506 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=277aa3523d;p=xen.git arm: make it possible to disable the SMMU driver Introduce a Kconfig option for the ARM SMMUv1 and SMMUv2 driver. Signed-off-by: Stefano Stabellini Acked-by: Julien Grall Acked-by: Jan Beulich CC: jbeulich@suse.com --- Changes in v3: - rename SMMUv2 to ARM_SMMU - improve help message - use if ARM Changes in v2: - rename HAS_SMMUv2 to SMMUv2 - move SMMUv2 to xen/drivers/passthrough/Kconfig --- diff --git a/xen/drivers/passthrough/Kconfig b/xen/drivers/passthrough/Kconfig index 8d90b67e2e..a3c06491be 100644 --- a/xen/drivers/passthrough/Kconfig +++ b/xen/drivers/passthrough/Kconfig @@ -1,3 +1,15 @@ config HAS_PASSTHROUGH bool + +if ARM +config ARM_SMMU + bool "ARM SMMUv1 and v2 driver" + default y + ---help--- + Support for implementations of the ARM System MMU architecture + versions 1 and 2. + + Say Y here if your SoC includes an IOMMU device implementing the + ARM SMMU architecture. +endif diff --git a/xen/drivers/passthrough/arm/Makefile b/xen/drivers/passthrough/arm/Makefile index f4cd26e15d..01564314ea 100644 --- a/xen/drivers/passthrough/arm/Makefile +++ b/xen/drivers/passthrough/arm/Makefile @@ -1,2 +1,2 @@ obj-y += iommu.o -obj-y += smmu.o +obj-$(ARM_SMMU) += smmu.o